package cn.com.cifi.mars.service;

import cn.com.cifi.mars.bean.bo.approval.ApprovalSubmitBO;
import cn.com.cifi.mars.entity.ApprovalBill;
import com.baomidou.mybatisplus.extension.service.IService;

public interface ApprovalBillService extends IService<ApprovalBill> {

	//提交OA审批
	ApprovalBill submit(ApprovalSubmitBO param);
	//获取项目未完成的审批单
	ApprovalBill getNotSubmitApprovalBill(String projectId, String businessType);
	//获取审批预览地址
	String getPreviewUrl(ApprovalBill approvalBill);

	String getReviewUrl(String instanceId, String taskId);

	//获取认证token
	String getAuthToken();
	//保存流程实例
	String saveFlow(String sessionToken, String flowParams);
	//废弃流程实例
	String endFlow(String sessionToken, String endFlowParams);
	//删除流程实例
	String deleteFlow(String sessionToken, String deleteFlowParams);
	//查询流程实例的审批记录
	String selectFlowOpt(String sessionToken, String flowOptParams);
	//查询流程实例的审批路径
	String selectFlowPath(String sessionToken, String flowPathParams);
	//根据OA消息,更新审批单状态
    void updateByOA(String approvalId, String taskId, String status);


}
